package com.yisu.auction.manager.core.service;

import com.yisu.auction.ewf.common.web.EasyUIGrid;
import com.yisu.auction.ewf.entity.SecKillActivity;
import com.yisu.auction.manager.domain.request.baseInfoPackage.SecKillActivityRequest;

/**
 * author: 赵杰
 * Business Description：秒杀活动
 * createTime：2017/8/23
 */
public interface ISecKillActivityService {

    /**
     * author:赵杰
     * Business Description : 分页获取秒杀活动商品信息
     * @param secKillActivityRequest 分页请求信息
     * @return 商品分类列表
     */
    EasyUIGrid<SecKillActivity> getSecKillActivityByPage(SecKillActivityRequest secKillActivityRequest);


    /**
     * author:赵杰
     * Business Description : 分页获取秒杀活动商品信息
     * @param secKillActivityRequest goodsId
     * @return
     */
    boolean joinSecKillByGoodsId(SecKillActivityRequest secKillActivityRequest);

    /**
     * author:赵杰
     * Business Description : 通过主键ID获取秒杀信息
     * @param secKillActivityRequest
     * @return
     */
    SecKillActivity getSecKillActivityById(SecKillActivityRequest secKillActivityRequest);

    /**
     * author:赵杰
     * Business Description : 修改秒杀信息
     * @param secKillActivity
     * @return
     */
    boolean updateSecKillActivity(SecKillActivity secKillActivity);


}
